﻿//#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

//main03：标准C函数scanf提示C4996错误
//#pragma warning(disable:4996)
int main03(void)
{
	int a;
	//1.键盘输入，赋值给a;
	printf("2.请键盘输入值，按回车结束：");//5
	scanf("%d", &a);
	printf("3.此时输出值a= %d\n", a);//5

	float b = 12.56f;
	double c = 12.56f;

	short d = 0xfffe;
	printf("4.输出有符号短整型的值：%d\n", d);//-2
	unsigned short e = 0xfffe;
	printf("5.输出无符号短整型的值：%u\n", e);//65534
	short f = 0x7fff + 2;
	printf("6.输出有符号短整型+2的值：%d\n", f);//-32767
	unsigned short g = 0x7fff + 5;
	printf("7.输出无符号短整型+5的值：%u\n", g);//32772
	return 0;
}